extends Node

var gravity:float = ProjectSettings.get_setting("physics/2d/default_gravity")
var dashflag:bool = 1
var wolf_time_stander:float = 0.15 #标准缓冲时间
var wolf_time:float = wolf_time_stander #缓冲时间
var lock_time:float = 0.1
var longjump_flag:bool = false
var current_checkpoint:Vector2 = Vector2.ZERO

var sign_recive:bool = false 
var stage_show:bool = false

func _ready() -> void:
	current_checkpoint = Vector2(-431,251)


func format_to_two_decimals(value: float) -> String:
	return "%0.2f" %value
	
func boolswap(bools:bool):
	if bools == true:
		bools = false
	else:
		bools = true
		
func set_checkpoint(position:Vector2):
	current_checkpoint = position
	
func get_checkpoint():
	return current_checkpoint
	

		

		

		
	
